export const rangeList = [{
  label: '接入',
  value: '0'
}, {
  label: '接出',
  value: '1'
}]

export const option = {
  border: true,
  index: true,
  indexLabel: '序号',
  addBtn: false,
  delBtn: false,
  editBtn: false,
  stripe: true,
  align: 'center',
  searchMenuSpan: 6,
  column: [{
    label: 'ID',
    prop: 'confId',
    display: false,
    hide: true,
    showColumn: false
  },{
    label: '接入/接出',
    display: false,
    hide: true,
    showColumn: false,
    prop: 'commType',
    type: 'select',
    align: 'center',
    // search: true,
    searchSpan: 5,
    searchValue: '0',
    clearable: false,
    dicData: rangeList,
    // change: ({value, column}) => {
    //   if (value === '0') {
    //     option.column[2].search = true
    //     option.column[5].search = true
    //     option.column[4].search = false
    //   } else if (value === '1') {
    //     option.column[2].search = false
    //     option.column[5].search = false
    //     option.column[4].search = true
    //   }
    // }
  },
    {
    label: '项目名称',
    prop: 'inSysName',
    type: 'select',
    align: 'center',
    search: false,
    props: {
      label: 'name',
      value: 'code'
    },
    searchLabelWidth: 100,
    cascaderItem: ['groupName'],
    dicUrl: '/comm/insystem/insys_list',
    searchValue: ''
  }, {
    label: '项目编码',
    prop: 'systemCode',
    align: 'center',
  },  /* {
      label: '接出系统名称',
      prop: 'outSysName',
      type: 'select',
      align: 'center',
      search: false,
      searchSpan: 5,
      props: {
        label: 'name',
        value: 'code'
      },
      searchLabelWidth: 100,
      dicUrl: '/comm/outsystem/outsys_list'
  }, */ {
    label: '服务名称',
    prop: 'groupName',
    type: 'select',
    align: 'center',
    search: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: '/comm/group/group_list/code/{{key}}',
  },{
    label: '服务编码',
    prop: 'groupCode',
    align: 'center',
    span: 24,
  }]
}
